{% extends "bootstrap/base.html" %}
{% import "macro.html" as macro %}

{% block title %}HelloCode后台管理系统{% endblock %}

{% block head %}
	{{ super() }}
	<link rel="shortcut icon" type="image/x-icon" href="{{ url_for('static',filename='images/admin.png' ) }}" />
	<link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/admin.css') }}">
{% endblock %}

{% block content %}



<div class="mainContainer">
	<div class="row row-head">
		<span>头内容</span>
		<div>后台管理系统</div>
		<div>用户管理系统</div>
	</div>

	<div class="row row-content">
		<div class="col-md-3 col-nav" >
			<ul class="nav nav-pills nav-stacked" role="tablist">
		  	<li role="presentation"><a href="{{ url_for('admin.user_admin') }}">用户管理</a></li>
		  	<li role="presentation"><a href="{{ url_for('admin.post_admin') }}">博客管理</a></li>
		  	<li role="presentation"><a href="{{ url_for('admin.comments_admin') }}">评论管理</a></li>
			</ul>
		</div>
		<div class="col-md-9 col-container">
			{% block page_content %}
			{% endblock %}
		</div>
	</div>
	
</div>



{% endblock %}

{% block scripts %}
	{{ super() }}
	<script type="text/javascript" src="{{ url_for('static',filename='js/webUtil.js') }}" ></script>
	<script type="text/javascript">
		$(document).ready(function () {			
			{% block select_nav %}
				//父页面重新该模块,设置导航选中 webUtil.js里面的selectPage
			{% endblock %}
		});
		
		setTimeout(function (){
			$(".alert").hide()
		},2000) //flash警告框2秒自动消失

	</script>
{% endblock %}